package io.gitee.zicai.bus.listener;

import com.google.common.eventbus.Subscribe;
import io.gitee.zicai.bus.adaptor.IBusReceiveAdaptor;
import io.gitee.zicai.bus.bus.IReceiveBus;
import io.gitee.zicai.bus.core.IBusReceiver;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * GuavaBusReceiveListener
 *
 * @author zicai
 * @since 2021-01-22
 */
public class GuavaBusReceiveListener<R extends IBusReceiver, RB extends IReceiveBus<R, RT>, RT> extends BaseBusReceiveListener<R, RB, RT> {

    @Autowired
    private IBusReceiveAdaptor<R, RB, RT> cmdReceiveAdaptor;

    @SuppressWarnings("UnstableApiUsage")
    @Subscribe
    public void cmdReceiveHandler(RB bus) {
        super.cmdReceiveHandler(cmdReceiveAdaptor, bus);
    }
}
